Skip to content

test(NODE-7366): add case 1 and 2 to retryable writes prose test 6#4887

Merged
dariakp merged 1 commit intomainfrom
NODE-7366-prose
Mar 10, 2026
Merged

test(NODE-7366): add case 1 and 2 to retryable writes prose test 6#4887
dariakp merged 1 commit intomainfrom
NODE-7366-prose

Conversation

@nbbeeken
Copy link
Copy Markdown
Contributor

Description

Summary of Changes

Adding missing cases to prose test 6

Notes for Reviewers

What is the motivation for this change?

Full suite of retryable writes test 6

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

'when a retry attempt fails with an error labeled NoWritesPerformed, drivers MUST return the original error',
{ requires: { topology: 'replicaset', mongodb: '>=4.2.9' } },
'Case 1: Test that drivers return the correct error when receiving only errors without NoWritesPerformed',
{ requires: { topology: 'replicaset', mongodb: '>=6.0' } },
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this requirement came later, it doesn't matter since these are just stub tests, but best not to be inconsistent

@nbbeeken nbbeeken marked this pull request as ready for review March 10, 2026 17:38
@nbbeeken nbbeeken requested a review from a team as a code owner March 10, 2026 17:38
@nbbeeken nbbeeken requested review from Copilot and dariakp March 10, 2026 17:38
@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Mar 10, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds missing cases to the Retryable Writes spec prose test #6 to validate error propagation behavior across multiple retry attempts under different combinations of NoWritesPerformed labeling.

Changes:

  • Renames and expands prose test #6 into multiple explicit cases (Case 1–3).
  • Adds new Case 1 and Case 2 coverage for “all errors without NoWritesPerformed” and “all errors with NoWritesPerformed”.
  • Tightens/clarifies some inline prose and expectations (e.g., returned error code assertions).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dariakp dariakp merged commit 88b2ad2 into main Mar 10, 2026
32 of 34 checks passed
@dariakp dariakp deleted the NODE-7366-prose branch March 10, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Primary Review In Review with primary reviewer, not yet ready for team's eyes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants